import request from '@/utils/request'

// 查询出差报销列表
export function listBusinessTripReimbursement(query) {
  return request({
    url: '/reimbursement/BusinessTripReimbursement/list',
    method: 'get',
    params: query
  })
}

// 查询出差报销详细
export function getBusinessTripReimbursement(id) {
  return request({
    url: '/reimbursement/BusinessTripReimbursement/' + id,
    method: 'get'
  })
}

// 新增出差报销
export function addBusinessTripReimbursement(data) {
  return request({
    url: '/reimbursement/BusinessTripReimbursement',
    method: 'post',
    data: data
  })
}

// 修改出差报销
export function updateBusinessTripReimbursement(data) {
  return request({
    url: '/reimbursement/BusinessTripReimbursement',
    method: 'put',
    data: data
  })
}

// 删除出差报销
export function delBusinessTripReimbursement(id) {
  return request({
    url: '/reimbursement/BusinessTripReimbursement/' + id,
    method: 'delete'
  })
}
